<?php
declare(strict_types=1);
namespace App\Controller\Api;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;
use App\Service\CommodityService\SupplierCompanyService;

/**
 * @Controller(prefix="/SupplierCompany")
 * 供应商服务
 */
class SupplierCompanyController extends AbstractController
{
    /**
     * 通过供应商ID获取供应商分账信息
     * @RequestMapping(path="queryPayAccountBySupplierId", methods="POST")
     * @return string[]
     */
    public function queryPayAccountBySupplierId(RequestInterface $request,SupplierCompanyService $SupplierCompanyService)
    {
        return $SupplierCompanyService->queryPayAccountBySupplierId(
            (string)$request->input('supplierId')
            );
    }
}